package 设计模式.工厂模式.AbstractFactory;

/**
 * @description:
 * @author: asd
 * @time: 2022/11/18 1:53
 */
public class WhiteWomanFactory extends AbstractHumanFactory{
    @Override
    public Man creatMan() {
        return new WhiteMan();
    }

    @Override
    public Woman creatWoman() {
        return new WhiteWoman();
    }
}
class WhiteMan extends Man{

    @Override
    public void print() {
        System.out.println("蔡总十年粉，一心打篮球，男");
    }
}
class WhiteWoman extends Woman{

    @Override
    public void print() {
        System.out.println("蔡总十年粉，一心打篮球，女");
    }
}
